package com.itgungnir.designpattern.builder.builders;

import com.itgungnir.designpattern.builder.Product;
import com.itgungnir.designpattern.builder.parts.PartA;
import com.itgungnir.designpattern.builder.parts.PartB;
import com.itgungnir.designpattern.builder.parts.PartC;
import com.itgungnir.designpattern.builder.parts.PartD;

public class ProductBuilder2 extends Builder {

	@Override
	public Product buildProduct() {
		super.product = new Product();
		super.product.addComponent(new PartD());
		super.product.addComponent(new PartC());
		super.product.addComponent(new PartB());
		super.product.addComponent(new PartA());
		return super.product;
	}
}